home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2004 #11 / Amiga Plus CD - 2004 - No. 11.iso / AmiSoft / Dev / misc / LOCCounter.lha / LOCCounter / src / FileCount.h < prev    next >
C/C++ Source or Header  |  2004-08-17  |  953b  |  43 lines

  1. #ifndef LOC_FILE_COUNT_H
  2. #define LOC_FILE_COUNT_H
  3. /****************************************************************************
  4. *
  5. * $RCSfile: FileCount.h $
  6. * $Revision: 2.5 $
  7. * $Date: 2004/08/17 22:18:20 $
  8. * $Author: ssolie $
  9. *
  10. *****************************************************************************
  11. *
  12. * Copyright (c) 2004 Steven Solie.  All Rights Reserved.
  13. *
  14. *****************************************************************************
  15. *
  16. * FileCount component
  17. */
  18.  
  19. #include "Main.h"
  20.  
  21.  
  22. class FileCount {
  23. public:
  24.     FileCount(const char* name, bool mode);
  25.     ~FileCount();
  26.     const char* getName() const;
  27.     uint32 getCount() const;
  28.     uint32 getAddedCount() const;
  29.     uint32 getDeletedCount() const;
  30.     bool diffMode() const;
  31.     FileCount& operator +=(uint32 loc);
  32.     FileCount& operator -=(uint32 loc);
  33. private:
  34.     char m_name[MAX_FILE_NAME_LEN];
  35.     uint32 m_loc;
  36.     uint32 m_loc_added;
  37.     uint32 m_loc_deleted;
  38.     bool m_diff_mode;    // true for difference mode
  39. };
  40.  
  41.  
  42. #endif
  43.